package net.jueb.frameworkDemo.se.observer.eventBus.Observer;

/**
 * 观察者实现
 * @author juebanlin
 */
public class ConcreteObserver1 extends Observer {

    public ConcreteObserver1(Subject subject) {
        this.subject = subject;
    }

    /**
     * 当subjet更新时会调用所有观察者的update方法
     */
    @Override
    public void update() {
        System.out.println("Subject " + subject.getEvent() + " ConcreteObserver1");
    }
}